import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import {createPinia} from 'pinia'
import ElementPlus from 'element-plus' //导入element-plus
import 'element-plus/dist/index.css' //导入element-plus样式
import piniaPluginPersistedstate from "pinia-plugin-persistedstate" //引入持久化插件

const pinia = createPinia()
pinia.use(piniaPluginPersistedstate) //使用持久化插件

createApp(App).use(router).use(pinia).use(ElementPlus).mount('#app')